<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>精灵图</title>
  <style>
    .box1,
    .box2,
    .box3 {
      margin: 10px auto;
      background: url(./images/sprites.png) no-repeat;
    }

    .box1 {
      width: 60px;
      height: 60px;
      background-position: -182px 0;
    }

    .box2 {
      width: 28px;
      height: 28px;
      background-position: -154px -104px;
    }

    .box3 {
      width: 236px;
      height: 128px;
      background-position: 0 -219px;
    }
  </style>
</head>

<body>
  <div class="box1"></div>
  <div class="box2"></div>
  <div class="box3"></div>
</body>

</html>